<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class CreatePlatformAstrict extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('platform_limit', function (Blueprint $table) {
            //
            $table->increments('id');
            $table->tinyInteger('type')->default(0)->comment('角色 1=充值弹窗 2=送礼物弹窗');
            $table->string('value', 30)->default('')->comment('限制的值');
            $table->tinyInteger('status')->default(0)->comment('开关 0=关 1=开');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('platform_limit');
    }
}
